package ru.rchervot.sanasar.client.view;


import ru.rchervot.sanasar.client.model.UserSettings;

import com.google.gwt.event.shared.HandlerManager;

public class ModuleCandidatesPresenter extends AbstractModuleSearchPresenter {
	
	public ModuleCandidatesPresenter(ModuleSearchPresenterDisplay display, 
			HandlerManager eventBus,
			UserSettings settings) {
		
		super(display, eventBus, settings);
		
	}
	
	protected void addHandlerNewRecord() {
//		eventBus.addHandler(NewRecordEventCandidates.TYPE,
//				new HandlerNewRecordCandidates() {
//			public void onNewRecordChange(NewRecordEventCandidates event) {
//				switchToRecordEditPanel();
//				Candidate candidate = event.getCandidate();
//				
//				if (currentCandidateId.equals(candidate.getId())) {
//					renderCandidate(candidate);
//				}
//			}
//		});
	}
	
	public ModuleSearchPresenterDisplay getDisplay() {
		return (ModuleSearchPresenterDisplay) display;
	}
	
	
}
